package com.oa.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel("假期表")
@TableName("admin_holiday")
@Data
public class Holiday extends Model<Holiday> {


    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("假期名称")
    private String holidayName;

    @ApiModelProperty("假期类型(1-法定日 2-非法定日)")
    private Integer holidayType;

    @ApiModelProperty("发放群体(1-男性员工 2-女性员工  3-全体员工)")
    private Integer grantGroup;

    @ApiModelProperty("发放年龄")
    private Integer grantAge;

    @ApiModelProperty("假期天数")
    private Double holidayNumber;

    @ApiModelProperty("日期类型(1-每年 2-每月 3-每日)")
    private Integer dateType;

    @ApiModelProperty("是否需要附件上传 (1-是 2-否)")
    private Integer fileUpload;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
